Skip to content

Conversation

thomashoneyman
Copy link
Contributor

What does this pull request do?

Closes #58 by adding instances for NonEmptyArray and NonEmptyList.

I also considered adding Foldable and NonEmpty Foldable instances, as suggested in #25, but this would cause overlapping instances with existing foldable structures (Array, List). Any suggestions for this -- instance chains, or skip altogether?

Where should the reviewer start?

Additions to the Encode.Class and Decode.Class modules, plus new tests added to the nonempty suite with QuickCheck.

Other Notes:

I also did some minor cleanup to make the modules' coding style more consistent, but without making changes to functionality.

@thomashoneyman thomashoneyman added the type: enhancement A new feature or addition. label Aug 28, 2019
@thomashoneyman thomashoneyman requested a review from garyb August 28, 2019 04:30
@thomashoneyman thomashoneyman self-assigned this Aug 28, 2019
@thomashoneyman thomashoneyman merged commit 493002f into master Aug 28, 2019
@thomashoneyman thomashoneyman deleted the non-empty branch September 8, 2019 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A new feature or addition.
Development

Successfully merging this pull request may close these issues.

Instance for NonEmptyArray?
3 participants